import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import * as serviceWorker from './serviceWorker'
import App from './components/App'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/es/locale/zh_CN'
import './api/interceptor-axios'
import { HashRouter as Router, Route } from 'react-router-dom'

ReactDOM.render(
  <ConfigProvider locale={zhCN}>
    <Router>
      <Route component={App} />
    </Router>
  </ConfigProvider>,
  document.getElementById('root')
)

serviceWorker.unregister()
